<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cherry.js</title>
    <script src="../../Cherry.js"></script>

</head>
<body>
    <div id="app"></div>
</body>
<script>

    new CherryMain({
        app:"app",
        child:[
            new CHE_Iframe({
                name:"iframe",
                height: 500,
                width:500,
                src:"http://www.uc123.com/"
            }),
            new CHE_Container({
                height:20,
            }),
            new CHE_Button({
                margin:5,
                text:"修改链接",
                methods:{
                    click:()=>{
                        $GET("#iframe").setSrc("http://www.baidu.com");
                    }
                }
            }),
            new CHE_Button({
                margin:5,
                text:"获取链接",
                methods:{
                    click:()=>{
                        console.log($GET("#iframe").getSrc());
                    }
                }
            })
        ],
        Created:()=>{

        }
    });



</script>
</html>